How to handle Resizable Elements